/*
 * JBoss, Home of Professional Open Source
 *
 * Copyright 2008, Red Hat Middleware LLC, and individual contributors
 * by the @author tags. See the COPYRIGHT.txt in the distribution for a
 * full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.jboss.netty.handler.codec.bayeux;

import java.util.UUID;

/**
 *
 * A connected Bayeux client may send unsubscribe messages to cancel interest in
 * a channel and to stop published message delivery from the server to the
 * unsubscribe channel.
 *
 * A unsubscribe request MUST contain the message fields:
 *   channel
 *     value "/meta/unsubscribe"
 *   clientId
 *     The client ID returned in the handshake response
 *   subscription
 *     a channel name or a channel pattern or an array of channel names and channel patterns.
 *
 * A unsubscribe request MAY contain the message fields:
 *   ext
 *   id
 *
 * An example unsubscribe request is:
 * [
 *   {
 *     "channel": "/meta/unsubscribe",
 *     "clientId": "Un1q31d3nt1f13r",
 *     "subscription": "/foo/**"
 *   }
 * ]

 * @author daijun
 */
public class UnsubscribeRequest extends BayeuxMessage implements BayeuxInterface{

    //required
    private String channel;
    private String clientId;
    private String subscription;

    //optional
    private BayeuxExt ext;
    private String id;

    public UnsubscribeRequest(){
    }

    @Override
    public String toJSON() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public boolean isValid() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
